<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>笔记 | 个人博客</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="开发实战及解决方案 笔记1. 系统简介系统架构  服务间关系  2. 单点登录及第三方登录解决方案token生成流程  微信登录流程  3. 第三方支付支付宝 https:&#x2F;&#x2F;opendocs.alipay.com&#x2F;apis&#x2F;api_1&#x2F;alipay.trade.precreate  微信支付 https:&#x2F;&#x2F;pay.weixin.qq.com&#x2F;wiki&#x2F;doc&#x2F;apiv3&#x2F;wxpay&#x2F;pages">
<meta property="og:type" content="article">
<meta property="og:title" content="笔记">
<meta property="og:url" content="http://codercheng.cn/2021/04/30/%E7%AC%94%E8%AE%B0/index.html">
<meta property="og:site_name" content="个人博客">
<meta property="og:description" content="开发实战及解决方案 笔记1. 系统简介系统架构  服务间关系  2. 单点登录及第三方登录解决方案token生成流程  微信登录流程  3. 第三方支付支付宝 https:&#x2F;&#x2F;opendocs.alipay.com&#x2F;apis&#x2F;api_1&#x2F;alipay.trade.precreate  微信支付 https:&#x2F;&#x2F;pay.weixin.qq.com&#x2F;wiki&#x2F;doc&#x2F;apiv3&#x2F;wxpay&#x2F;pages">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102757-476885.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102801-865139.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102805-808807.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102809-571094.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102811-727993.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102813-423678.png">
<meta property="og:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102815-960784.png">
<meta property="og:image" content="http://codercheng.cn/.cn//C:%5CUsers%5CLenovo%5CDesktop%5C%E6%8B%89%E5%8B%BE%5C%E5%AD%A6%E4%B9%A0%E8%B5%84%E6%96%99%5C%E7%AC%AC%E5%8D%81%E4%B8%80%E9%98%B6%E6%AE%B5%5C%E9%A1%B9%E7%9B%AE%E8%B5%84%E6%96%99%5C%E9%A1%B9%E7%9B%AE%E8%B5%84%E6%96%99%5C%E8%AE%B2%E4%B9%89%5Cmd%E5%9B%BE%E7%89%87%5Cimage-20200918170348950.png">
<meta property="article:published_time" content="2021-04-30T02:36:54.716Z">
<meta property="article:modified_time" content="2021-04-30T04:09:11.079Z">
<meta property="article:author" content="CoderCheng">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102757-476885.png">
  
    <link rel="alternate" href="/atom.xml" title="个人博客" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.lug.ustc.edu.cn/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 4.2.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">个人博客</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://codercheng.cn"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-笔记" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2021/04/30/%E7%AC%94%E8%AE%B0/" class="article-date">
  <time datetime="2021-04-30T02:36:54.716Z" itemprop="datePublished">2021-04-30</time>
</a>
    
  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      笔记
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h1 id="开发实战及解决方案-笔记"><a href="#开发实战及解决方案-笔记" class="headerlink" title="开发实战及解决方案 笔记"></a>开发实战及解决方案 笔记</h1><h2 id="1-系统简介"><a href="#1-系统简介" class="headerlink" title="1. 系统简介"></a>1. 系统简介</h2><p>系统架构</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102757-476885.png" alt="系统架构"></p>
<p>服务间关系</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102801-865139.png" alt="服务关系"></p>
<h2 id="2-单点登录及第三方登录解决方案"><a href="#2-单点登录及第三方登录解决方案" class="headerlink" title="2. 单点登录及第三方登录解决方案"></a>2. 单点登录及第三方登录解决方案</h2><p>token生成流程</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102805-808807.png" alt="token生成流程"></p>
<p>微信登录流程</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102809-571094.png" alt="微信登录流程"></p>
<h2 id="3-第三方支付"><a href="#3-第三方支付" class="headerlink" title="3. 第三方支付"></a>3. 第三方支付</h2><p>支付宝</p>
<p><a href="https://opendocs.alipay.com/apis/api_1/alipay.trade.precreate" target="_blank" rel="noopener">https://opendocs.alipay.com/apis/api_1/alipay.trade.precreate</a> </p>
<p>微信支付</p>
<p><a href="https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/Overview.shtml" target="_blank" rel="noopener">https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/pages/Overview.shtml</a></p>
<h2 id="4-秒杀"><a href="#4-秒杀" class="headerlink" title="4. 秒杀"></a>4. 秒杀</h2><p>后台发布秒杀活动课程信息</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102811-727993.png" alt="后台发布秒杀活动课程信息"></p>
<p>前端用户抢购课程</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102813-423678.png" alt="前端用户抢购课程"></p>
<p>超时未支付流程</p>
<p><img src="https://gitee.com/adc123321/blog_img/raw/master/image/202104/30/102815-960784.png" alt="超时未支付流程"></p>
<h2 id="5-分布式事务解决方案-Seata"><a href="#5-分布式事务解决方案-Seata" class="headerlink" title="5. 分布式事务解决方案 Seata"></a>5. 分布式事务解决方案 Seata</h2><p>Seata 是一款开源的分布式事务解决方案，致力于提供高性能和简单易用的分布式事务服 </p>
<p>务。 Seata 将为用户提供了 AT、TCC、SAGA 和 XA 事务模式，为用户打造一站式的分布式解决方案。 </p>
<p>官方文档地址：<a href="https://seata.io/zh-cn/index.html" target="_blank" rel="noopener">https://seata.io/zh-cn/index.html</a></p>
<p>Seata 下载地址：<a href="https://seata.io/zh-cn/docs/ops/deploy-guide-beginner.html" target="_blank" rel="noopener">https://seata.io/zh-cn/docs/ops/deploy-guide-beginner.html</a></p>
<p> 视频加密流程</p>
<p><img src="/.cn//C:%5CUsers%5CLenovo%5CDesktop%5C%E6%8B%89%E5%8B%BE%5C%E5%AD%A6%E4%B9%A0%E8%B5%84%E6%96%99%5C%E7%AC%AC%E5%8D%81%E4%B8%80%E9%98%B6%E6%AE%B5%5C%E9%A1%B9%E7%9B%AE%E8%B5%84%E6%96%99%5C%E9%A1%B9%E7%9B%AE%E8%B5%84%E6%96%99%5C%E8%AE%B2%E4%B9%89%5Cmd%E5%9B%BE%E7%89%87%5Cimage-20200918170348950.png" alt="image-20200918170348950"></p>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://codercheng.cn/2021/04/30/%E7%AC%94%E8%AE%B0/" data-id="cko3snvxd001ii8uodcw29zu9" class="article-share-link">Share</a>
      
      
    </footer>
  </div>
  
    
<nav id="article-nav">
  
    <a href="/2021/05/08/11%20-02%20%E5%BE%AE%E6%9C%8D%E5%8A%A1%20%E9%83%A8%E7%BD%B2spring%20Cloud/" id="article-nav-newer" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Newer</strong>
      <div class="article-nav-title">
        
          11 -02 微服务 部署spring Cloud
        
      </div>
    </a>
  
  
    <a href="/2021/04/30/11-1/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">11-1</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Java/">Java</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/MySql/">MySql</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Netty/">Netty</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SpringBoot/">SpringBoot</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SpringCloud/">SpringCloud</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/SpringMVC/">SpringMVC</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Tomcat/">Tomcat</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Zookeeper/">Zookeeper</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E4%BD%9C%E4%B8%9A/">作业</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E5%88%86%E5%B8%83%E5%BC%8F%E8%B0%83%E5%BA%A6/">分布式调度</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E6%A1%86%E6%9E%B6/">框架</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E7%9F%A5%E8%AF%86/">知识</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/%E8%AE%BE%E8%AE%A1%E6%A8%A1%E5%BC%8F/">设计模式</a></li></ul>
    </div>
  </div>


  
    

  
    
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2024/08/">八月 2024</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/09/">九月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/08/">八月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/04/">四月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2022/02/">二月 2022</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/11/">十一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/06/">六月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/05/">五月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/04/">四月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/03/">三月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">二月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">十二月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/11/">十一月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/10/">十月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/09/">九月 2020</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/08/">八月 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2024/08/28/CentOS%E5%86%85%E5%AD%98cpu%E6%8E%92%E6%9F%A5/">CentOS内存cpu排查</a>
          </li>
        
          <li>
            <a href="/2022/09/22/Linux%20%E6%9F%A5%E7%9C%8B%E6%97%A5%E5%BF%97%E5%91%BD%E4%BB%A4/">Linux 查看日志命令</a>
          </li>
        
          <li>
            <a href="/2022/08/30/dubbo%20%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/">dubbo 常见问题</a>
          </li>
        
          <li>
            <a href="/2022/04/26/1%20%E6%BA%90%E7%A0%81%E7%AC%94%E8%AE%B0/">1 源码笔记</a>
          </li>
        
          <li>
            <a href="/2022/02/24/jvisualVM%20%E4%BD%BF%E7%94%A8%E7%AC%94%E8%AE%B0/">jvisualVM 使用笔记</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2024 CoderCheng<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//code.jquery.com/jquery-2.0.3.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>